package com.addplus.townmall.server.api.model.town;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.addplus.townmall.server.api.model.base.BaseRestModel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 商城用户会员卡记录信息表
 * </p>
 *
 * @author zhangjiehang
 * @since 2018-11-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class DiscountCardMember extends BaseRestModel {

    private static final long serialVersionUID = 1L;

    /**
     * 关联用户主键id
     */
    private Integer memberId;

    /**
     * 关联会员卡主键id
     */
    private Integer discountCardId;

    /**
     * 会员卡开始时间
     */
    private LocalDate startDate;

    /**
     * 会员卡结束时间
     */
    private LocalDate endDate;

    /**
     * 原本参与商品享受优惠额度(存0.98，代表9.8折)
     */
    private BigDecimal offerAmount;

    /**
     * 是否升级(0:否 1:是)
     */
    private Integer isUgrade;

    /**
     * 状态(0:未开始 1:进行中 2:已过期 3:已升级)
     */
    private Integer discuountStatus;
    /**
     * 来源(0:用户购买 1:平台赠送)
     */
    private Integer source;

    /**
     * 是否删除(0:否 1:是)
     */
    private Integer isDeleted;


}
